home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
- From: Dan Pop <danpop@mail.cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: RETURN ();
- Date: Thu, 8 Feb 1996 23:51:38 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9602082251.AA09989@dxmint.cern.ch>
- References: <DMFxxq.7M7@emi.net> <4fc6ve$kbn@s02.pavilion.co.uk>
- X-NNTP-Posting-Host: hpl3sn03.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
-
- AJRobb@pavilion.co.uk (Andy J Robb) writes:
-
- >samstar@emi.net wrote:
- >
- >>Is there a way to return muliple values to main from a seperate function ?
- >
- >>ex :
- >
- >>int main(void)
- >
- >main(int, char**) /* This says "ignore the command line" */
-
- Nope. This says: "I don't know the C syntax and I'd better learn C before
- posting". A compiler which accepts the above line in a function definition
- is not a C compiler.
-
- >>{
- >> Input_data();
- >> printf("Here all the input data");
- >>
- >> return 0;
- >>}
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-